package demo.practice.math;

public class Offer17 {

    public static void main(String[] args) {
        Offer17 offer17= new Offer17();
        offer17.printNumbers(1);
    }

    public int[] printNumbers(int n) {

        int ten=1;
        for(int i=0;i<n;i++){
            ten*=10;
        }

        int[] res= new int[ten-1];
        for(int i=1;i<ten;i++){
            res[i-1]=i;
        }
        return res;
    }
}
